package cn.iocoder.yudao.module.call.enums;

import cn.hutool.core.util.ObjectUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CallSourceEnum {

    ENT("ent", "企业搜索"),
    CLUE("clue", "线索"),
    CUSTOMER("customer", "客户"),
    CONTACT("contact", "联系人"),
    NONE("none", "手拨"),
    LIST("list","呼叫名单"),
    ;

    /**
     * 编码
     */
    private final String id;
    /**
     * 名字
     */
    private final String name;


    public static boolean isEnt(String source) {
        return ObjectUtil.equals(source, ENT.getId());
    }

    public static boolean isCustomer(String source) {
        return ObjectUtil.equals(source, CUSTOMER.getId());
    }

    public static boolean isClue(String source) {
        return ObjectUtil.equals(source, CLUE.getId());
    }

    public static boolean isContact(String source) {
        return ObjectUtil.equals(source, CONTACT.getId());
    }

}
